/**
 * 作者: wgx
 * 日期: 2024-11-29 15:29:30
 * 备注: 玩家的老虎机抽奖信息
 */
package com.motu.monstercity.server.game.userdata;

import com.motu.monstercity.protocol.Common.PBUserData;
import com.motu.monstercity.server.game.commondata.maintask.MainTaskConstant;
import com.motu.monstercity.server.game.logic.GameUser;
import com.motu.monstercity.server.game.logic.MainTaskManager;
import com.motu.monstercity.server.game.logic.RankActManager;

public class UserTigerDraw extends UserTigerDrawModel {
    public UserTigerDraw() {
        super();
    }

    public void addTotalNum(PBUserData.Builder pbUserData, int value) {
        super.addTotalNum(value);
        UserInfo userInfo = GameUser.getUserInfo(getId());
        MainTaskManager.updateTaskProgress(pbUserData, userInfo, MainTaskConstant.TASK_TYPE_175, getTotalNum());// 更新主线任务,成就,日常任务的进度
        RankActManager.updateTaskProgress(pbUserData, userInfo, MainTaskConstant.TASK_TYPE_175, getTotalNum());
    }
}
